package com.cdy.jxc_project.controller;

import com.cdy.jxc_project.domain.TGoodsUnit;
import com.cdy.jxc_project.domain.TSyslog;
import com.cdy.jxc_project.domain.vo.TGoodsUnitVo;
import com.cdy.jxc_project.json.R;
import com.cdy.jxc_project.mapper.SyslogMapper;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/*
 * @Project:jxc_project
 * @Author:cdy(缘生)
 * @Motto:放下杂念,只为迎接明天更好的自己
 * @Date:2023/5/8 9:30
 * */
@RestController
@RequestMapping("/syslog")
public class SyslogController {

    @Resource
    private SyslogMapper syslogMapper;

    @PostMapping("/queryAllSyslog")
    public R queryAllSyslog(){
        List<TSyslog> tSyslogs = syslogMapper.selectList(null);
        return R.ok().message("查询成功").data("tSyslogs",tSyslogs);
    }
}
